package com.victualler.core.base.repository;

import com.victualler.core.base.dao.*;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;

import java.io.Serializable;

/**
 * @Author: Guoshichang
 * @Date: Create in 11:23 2018-05-06
 * @Discription:
 */
@NoRepositoryBean
public interface BaseRepository<E extends BaseDao,ID extends Serializable>  extends JpaRepository<E,ID>,JpaSpecificationExecutor<E> {

    @Override
    Page<E> findAll(Pageable pageable);

}
